package cn.iluwen.airline.DTOs.admin.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 用户列表响应DTO（管理员用）
 */
@Data
@Schema(description = "用户列表响应（分页）")
public class UserListResponse {
    
    @Schema(description = "总记录数")
    private Long total;
    
    @Schema(description = "总页数")
    private Integer pages;
    
    @Schema(description = "当前页码")
    private Integer pageNum;
    
    @Schema(description = "每页记录数")
    private Integer pageSize;
    
    @Schema(description = "用户列表")
    private List<UserItem> list;
    
    /**
     * 用户列表项
     */
    @Data
    @Schema(description = "用户列表项")
    public static class UserItem {
        
        @Schema(description = "用户ID")
        private String userId;
        
        @Schema(description = "用户名")
        private String username;
        
        @Schema(description = "邮箱")
        private String email;
        
        @Schema(description = "手机号码")
        private String phone;
        
        @Schema(description = "真实姓名")
        private String realName;
        
        @Schema(description = "身份证号")
        private String idCard;
        
        @Schema(description = "账号创建时间")
        private LocalDateTime createdAt;
        
        @Schema(description = "账号最后更新时间")
        private LocalDateTime updatedAt;
    }
} 